package cloud.xiangyixiang.www.spring.boot.java.basics.pojo.bo;

import cloud.xiangyixiang.www.spring.boot.java.basics.annotations.FieldSu;
import cloud.xiangyixiang.www.spring.boot.java.basics.annotations.TableSu;

/**
 * <p>
 * Student
 * </p>
 *
 * @author weixin
 * @date 2023/9/13 16:31
 */
@TableSu("db_student")
class Student{

    @FieldSu(columnName = "db_id",type = "int",length = 10)
    private int id;

    @FieldSu(columnName = "db_name",type = "varchar2",length = 10)
    private String name;

    @FieldSu(columnName = "db_age",type = "int",length = 10)
    private int age;

    public Student() {
    }

    public Student(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
